package com.tensquare.problem.service;


import com.tensquare.problem.dao.PLDao;
import com.tensquare.problem.pojo.Pl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PLService {
    @Autowired
    private PLDao plDao;

    public List<Pl> findByProblemid(String problemid){
        List<Pl> byProblemid = plDao.findByProblemid(problemid);
        for (Pl p:byProblemid
             ) {
            System.out.println(p);
        }
        return plDao.findByProblemid(problemid);
    }
}
